<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>测试请求参数</title>
</head>
<body>
<form th:action="@{/paramEqualName}" method="get">
    <input type="text"name="userName" value="admin">
    <input type="text"name="password" value="456">
    <input type="checkbox" name="hlobby" value="a">a
    <input type="checkbox" name="hlobby" value="b">b
    <input type="checkbox" name="hlobby" value="c">c
    <input type="submit" value="测试name相同时获取请求参数">
</form>
<a th:href="@{/paramServletAPI(userName='admin',password='789')}">测试servletAPI参数获取请求获取</a><br/>
<!-- 请求参数 key 与控制器形参key相同即可-->
<a th:href="@{/testParam(userName='admin',password='101112')}">测试控制器行参获取参数请求获取</a><br/>
<a th:href="@{/testHeader(userName='admin',password='101112')}">@RequestHeader 测试</a><br/>
<a th:href="@{/testCookie(userName='admin',password='101112')}">@CookieValue 测试</a><br/>
<form th:action="@{/testPojo}" method="post">
    <input type="text"name="userName" value="张三">
    <input type="password" name="password" value="456">
    <input type="submit" value="测试实体接收参数">
</form>
</body>
</html>